package com.ms.demo;

/**
 * @description: 实现了ShapeDecorator1的 实体装饰类 2
 * @author: ms
 * @create: 2022-10-26 10:03
 */
public class GreenShapeDecorator extends ShapeDecorator {

    public GreenShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape){
        System.out.println("Border Color: Green");
    }

}